package com.shujia.day04;

public class PhoneOperator {
    public static void main(String[] args) {
        // 创建一个手机对象
        Phone phone = new Phone();
        phone.brand = "华为";
        phone.price = 7000;
        phone.color = "白";

        System.out.println("品牌："+phone.brand);
        System.out.println("价格："+phone.price);
        System.out.println("颜色："+phone.color);

        phone.call("马云");
        phone.sendMassage("马化腾");
        System.out.println(phone.watchVideo());
        System.out.println("============================");
        // 再创建一个对象
        Phone phone2 = phone;

        System.out.println("品牌："+phone2.brand);
        System.out.println("价格："+phone2.price);
        System.out.println("颜色："+phone2.color);
        phone.call("马云");
        phone.sendMassage("马化腾");
        System.out.println(phone.watchVideo());

        phone2.brand ="苹果";
        System.out.println(phone.brand);



    }
}
